import {asyncScheduler} from '../dist/index.esm.js'

function stask(state){
  console.log('state:',state)
  if(state < 5){
    this.schedule(state + 1,1000)
  }
}
asyncScheduler.schedule(stask,1000,0)